#ifndef SPRITE_H
#define SPRITE_H

#include "Defines.h"
#include "Entity2D.h"
#include "includes.h"
#include "Texture.h"

class ENGINE_API Sprite : public Entity2D{
public:
	Sprite(){		
		vertices[0].y=0;
		vertices[0].x=0;
		vertices[1].y=0;
		vertices[1].x=500;
		vertices[2].y=500;
		vertices[2].x=0;
		vertices[3].x=500;
		vertices[3].y=500;
	};
	~Sprite(){};

	void Draw(Renderer* renderer);
	void Update(float timeBetweenUpdates);

	void SetTexture(Texture::ptr _texture);
	const Texture::ptr GetTexture();
	void SetTextureArea(float x,float y,float width,float height);

private:
	TEXTUREVERTEX vertices[4];
	Texture::ptr texture;
};
#endif